﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CYPlayerScreens
{
	/// <summary>
	/// Interaction logic for Screen_1.xaml
	/// </summary>
	public partial class Screen_1 : UserControl
	{
		private bool[] btns = {false,false,false};
		public Screen_1()
		{
			this.InitializeComponent();
		}

		private void butPL_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			btns[0]=!btns[0];
			
			if(btns[0])
			{
				VisualStateManager.GoToState(this,"enablePL",true);
			}
			else
			{
				VisualStateManager.GoToState(this,"_default",true);
			}
		}

		private void btnPlay_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			btns[1]=!btns[1];
			if(btns[1])
				VisualStateManager.GoToState(this,"pressPlay",true);
			else
				VisualStateManager.GoToState(this,"defaultPlay",true);
		}

		private void btnStop_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			if(btns[1])
				VisualStateManager.GoToState(this,"defaultPlay",true);
		}
	}
}